package com.huiyeji.dynamic.core;

public class DynamicObjectItem {

    private DynamicObject dynamicObject;

    private boolean isGlobal;

    public DynamicObjectItem(DynamicObject dynamicObject, boolean isGlobal) {
        this.dynamicObject = dynamicObject;
        this.isGlobal = isGlobal;
    }

    protected void setGlobal(boolean isGlobal){
        this.isGlobal = isGlobal;
    }

    public DynamicObject getDynamicObject() {
        return dynamicObject;
    }

    public void setDynamicObject(DynamicObject dynamicObject) {
        this.dynamicObject = dynamicObject;
    }

    public boolean isGlobal() {
        return isGlobal;
    }
}
